package com.session1;

public class Cat extends Animal {
    public Cat(String food, String sound) {
        super(food, sound);
    }

    @Override
    public void eat() {
        System.out.println("小猫喜欢吃"+this.getFood());
    }

    @Override
    public void sound() {
        System.out.println("小猫" + this.getSound() + "叫");
    }

    public void playBall(){
        System.out.println("小猫咪喜欢玩球");
    }
}
